﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Meraz.Core.Model;

namespace Meraz.Core.Comparers
{
    public class TwitterUserUserNameComparer: IEqualityComparer<TwitterUser>
    {
        #region IEqualityComparer<TwitterUser> Members

        public bool Equals(TwitterUser x, TwitterUser y)
        {
            return x.Name.Equals(y.Name);
        }

        public int GetHashCode(TwitterUser obj)
        {
            return obj.Name.GetHashCode();
        }

        #endregion
    }
}
